package org_enum

// 组织-工地摄像头安装状态
type orgConstructSiteCameraInstallStatus int

var OrgConstructSiteCameraInstallStatus orgConstructSiteCameraInstallStatus

// 未申请
func (c *orgConstructSiteCameraInstallStatus) NotApply() int {
	return 1
}

// 已安装
func (c *orgConstructSiteCameraInstallStatus) Install() int {
	return 2
}

// 已申请未安装
func (c *orgConstructSiteCameraInstallStatus) ApplyAndNotInstall() int {
	return 3
}

func (c *orgConstructSiteCameraInstallStatus) ToText(value int) string {
	switch value {

	case 1:
		return "未申请"

	case 2:
		return "已安装"

	case 3:
		return "已申请未安装"

	}
	return ""
}

func (c *orgConstructSiteCameraInstallStatus) ToValue(text string) int {
	switch text {

	case "未申请":
		return 1

	case "已安装":
		return 2

	case "已申请未安装":
		return 3

	}
	return 0
}
